Skip to content

Meltdown exercise change according to issue #2565#2568

Merged
BethanyG merged 7 commits intoexercism:mainfrom
kbuc:kbuc-meltdown
Sep 17, 2021
Merged

Meltdown exercise change according to issue #2565#2568
BethanyG merged 7 commits intoexercism:mainfrom
kbuc:kbuc-meltdown

Conversation

@kbuc
Copy link
Copy Markdown
Contributor

@kbuc kbuc commented Sep 10, 2021

Changes:

  • Change Task 2 intervals to cover non-integer comparison.
  • Rewrite tests to test more points, especially the border cases.
  • Reduce number of tests of only one per function, but test many points
    (asserts in loop) in each test.
  • Remove hints of integer input parameters (they can be any numeric type).

Changes:
- Change Task 2 intervals to cover non-integer comparison.
- Rewrite tests to test more points, especially the border cases.
- Reduce number of tests of only one per function, but test many points
  (asserts in loop) in each test.
- Remove hints of integer input parameters (they can be any numeric type).
Remove python 3.8 debug f-string syntax for backwards compatibility.
Comment thread exercises/concept/meltdown-mitigation/.docs/instructions.md Outdated
Comment thread exercises/concept/meltdown-mitigation/conditionals_test.py Outdated
Copy link
Copy Markdown
Member

@BethanyG BethanyG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kbuc -- These are excellent changes. Thank you. 😄 I have one language suggestion (which is optional) and a request about tests/variations. Let me know if you have any questions or issues.

Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>
@BethanyG
Copy link
Copy Markdown
Member

Oh! And I almost forgot (which is terrible) -- please add a contributors key to the config for this exercise, and then add yourself to the array. 😄 exercise config.json, so that you get credit for all the work you've done on this re-write. Here is the spec for that config.json file.

Comment thread exercises/concept/meltdown-mitigation/conditionals.py
Comment thread exercises/concept/meltdown-mitigation/.docs/instructions.md
Comment thread exercises/concept/meltdown-mitigation/.meta/exemplar.py Outdated
Comment thread exercises/concept/meltdown-mitigation/conditionals.py
Comment thread exercises/concept/meltdown-mitigation/conditionals.py Outdated
Comment thread exercises/concept/meltdown-mitigation/conditionals_test.py Outdated
Comment thread exercises/concept/meltdown-mitigation/conditionals_test.py Outdated
Comment thread exercises/concept/meltdown-mitigation/conditionals_test.py Outdated
Comment thread exercises/concept/meltdown-mitigation/conditionals_test.py Outdated
The parameter types can be either integers or floats. This is
hinted with the Union type familiar with most of the current python users.
(Can be replaced with | in the future and/or moved to :type: field of
the docstring.)
Comment thread exercises/concept/meltdown-mitigation/.meta/exemplar.py Outdated
@BethanyG
Copy link
Copy Markdown
Member

@IsaacG -- Please don't recommend anything from typing in concept exercises or concept exercise docstrings that don't have typing as a prerequisite. We don't want to confuse students or require an optional module for a concept exercise. Thanks!

@BethanyG BethanyG added the x:size/large Large amount of work label Sep 17, 2021
@BethanyG
Copy link
Copy Markdown
Member

Bumping this to large size given the back and forth with test cases and language. @kbuc -- many thanks for your patience with the process!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:size/large Large amount of work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants